import useRequest from "@/api/useRequest";
import {IPage} from "@/interface/modules/system";
export class programmeSettingController {

  static syncOnlineProgrammeSetting():Promise<any>{
    return useRequest({
      url:'/programmeSetting/startSyncOnlineProgrammeSetting',
      method:'get'
    })
  }

  static uploadToTuChuang(programmeSettingId:string):Promise<any>{
    return useRequest({
      url:'/programmeSetting/uploadToTuChuang/'+programmeSettingId,
      method:'get'
    })
  }


  static getProgrammeSettingList(data:any ,pagination?: IPage): Promise<any> {
    return useRequest({
      url:'/programmeSetting/getProgrammeSettingList',
      method: "post",
      params: pagination,
      data
    })
  }

  static addProgrammeSetting(data: any): Promise<any> {
    return useRequest({
      url:'/programmeSetting/addProgrammeSetting',
      method:'post',
      data
    })
  }

  static deleteProgrammeSetting(id:string): Promise<any>{
    return useRequest({
      url:'/programmeSetting/deleteProgrammeSetting?id='+id,
      method:'get'
    })
  }
}

